package com.mt.course.feign;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import com.mt.common.ServiceResult;
import com.mt.course.entity.CourseEntity;

@FeignClient(name = "course")
public interface CourseFeign {
    @GetMapping("/course/findInfo")
    ServiceResult<CourseEntity> findInfo(Map<String, Object> params);

    @PostMapping("/course/doUpdate")
    ServiceResult<Integer>  doUpdate(CourseEntity courseEntity);
}
